package com.example.base.demo.i18n;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.LocaleResolver;

/**
 * @author TangDan
 * @version 1.0
 * @since 2023/3/7
 */
@Configuration
public class MyMvcConfig  {

    @Bean
    public LocaleResolver localeResolver(){
        return new RequestHeaderLocaleResolver();
    }
}
